ServerEvents.recipes(event => {
    //魔改配方
    //配方
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:45acp"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:45zidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:9mm"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:9mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:762x25"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:762x25mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:762x39"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:762x39mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:68x51fury"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:68x51mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:30_06"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:30-06zidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:308"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:308zidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:762x54"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:762x54mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:50ae"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:50aezidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:50bmg"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:50bmgzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:338"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:338zidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:357mag"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:357magzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:magnum_r"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:357sqzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:46x30"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:46zidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"tacz:58x42"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:58mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"mk16:545x39"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:545x39mmzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"helldiver2:rifle_normal"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:dyqb2bqzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"helldiver2:rifle_ap"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:dyqb2cjbqzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"helldiver2:explode_ap"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:dyqb2cjgbzidan'
    ]);
    event.shapeless(Item.of('tacz:ammo', '{AmmoId:"helldiver2:pistol_normal"}'), [
        'kubejs:a_pinch_of_gunpowder', 'kubejs:danke', 'kubejs:dyqb2sqzidan'
    ]);
    //弹头
    const items = ["45zidan", "9mmzidan", "762x25mmzidan", "762x39mmzidan", "68x51mmzidan",
        "762x54mmzidan", "58mmzidan", "545x39mmzidan", "dyqb2bqzidan", "dyqb2cjbqzidan",
        "dyqb2cjgbzidan", "dyqb2sqzidan", "50bmgzidan", "50aezidan", "308zidan", "30-06zidan",
        "45zidan", "46zidan", "357magzidan", "357sqzidan", "338zidan"];

    items.forEach(item => {
        event.shapeless(`4x kubejs:${item}`, [
            'minecraft:copper_ingot']);
    })

})
ServerEvents.recipes(e => {
    //定义
    const create = e.recipes.create;
    const incomplete = 'kubejs:dk'
    //9mm
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:9mm"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:9mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:45acp"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:45zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:762x25"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:762x25mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:762x39"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:762x39mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:68x51fury"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:68x51mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:30_06"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:30-06zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:308"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:308zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:762x54"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:762x54mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:50ae"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:50aezidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:50bmg"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:50bmgzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:338"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:338zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:357mag"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:357magzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:magnum_r"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:357sqzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:46x30"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:46zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:58x42"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:58zidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"mk16:545x39"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:545x39mmzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"helldiver2:rifle_normal"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:dyqb2bqzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"helldiver2:rifle_ap"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:dyqb2cjbqzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"helldiver2:explode_ap"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:dyqb2cjgbzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"helldiver2:pistol_normal"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:dyqb2sqzidan']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    create.sequenced_assembly(
        [
            Item.of('tacz:ammo', '{AmmoId:"tacz:"}')
        ],
        'kubejs:danke',
        [
            create.deploying(incomplete, [incomplete, 'kubejs:']),
            create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
            create.pressing(incomplete, incomplete)
        ]).transitionalItem(incomplete).loops(1)
    /*
            create.sequenced_assembly(
            [
                Item.of('tacz:ammo', '{AmmoId:"tacz:"}')
            ],
            'kubejs:danke',
            [
                create.deploying(incomplete, [incomplete, 'kubejs:']),
                create.deploying(incomplete, [incomplete, 'kubejs:a_pinch_of_gunpowder']),
                create.pressing(incomplete, incomplete)
            ]).transitionalItem(incomplete).loops(1)
    */
})